package com.vf.admin.miaodong.service.impl;

import com.vf.admin.common.splitpage.SplitPageBean;
import com.vf.admin.miaodong.dao.AfterHelpServiceDao;
import com.vf.admin.miaodong.entity.AppHelp;
import com.vf.admin.miaodong.service.AfterHelpService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @author anxiang
 * @version 1.0.0
 * @ClassName AfterHelpServiceImpl.java
 * @Description 帮助列表
 * @createTime 2021年07月23日 12:54:00
 */
@Service
public class AfterHelpServiceImpl implements AfterHelpService {

    @Autowired
    AfterHelpServiceDao afterHelpServiceDao;

    /**
     * 新增或更新
     * @param appHelp
     */
    @Override
    public void saveOrUpdate(AppHelp appHelp) {
        afterHelpServiceDao.saveOrUpdate(appHelp);
    }

    /**
     * 综合查询列表
     * @param paramap
     * @param splitPageBean
     * @return
     */
    @Override
    public List<AppHelp> findList(Map<String, Object> paramap, SplitPageBean splitPageBean) {
        return afterHelpServiceDao.findList(paramap, splitPageBean);
    }
    /**
     * 查询
     * @return
     */
    @Override
    public AppHelp get(Integer id) {
        return afterHelpServiceDao.get(id);
    }
    /**
     * 更新显示的状态
     * @param id
     * @param status
     */

    @Override
    public void updateStatus(Integer id, Integer status) {
        afterHelpServiceDao.updateStatus(id, status);
    }

    /**
     * 删除
     * @param id
     */
    @Override
    public void delete(Integer id) {
        afterHelpServiceDao.delete(id);
    }
}